package com.ali.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class Child extends Parent {
    public String childName;
    private String childCode;

    public void childPrint1() {
        System.out.println("childPrint1");
    }

    private void childPrint2() {
        System.out.println("childPrint2");
    }

    private String toUpperCase(String str) {
        return str.toUpperCase();
    }
}